package com.sanjiahantang.youjiaclient.module.store.beans;

import com.google.gson.Gson;
import com.sanjiahantang.youjiaclient.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by yan on 2018/1/4.
 */
//{
//        "appraiseList": [],
//        "address": "天津天津市和平区天津一中正门对面",
//        "roleId": "15102263579",
//        "designList": [],
//        "iconList": [],
//        "projectNumber": 0,
//        "teamNumber": 0,
//        "experienceName": "库珀体验店",
//        "lon": 117.199807,
//        "lat": 39.11932,
//        "url": "upload/2017/11/28/1511847070943.jpg"
//        }

public class StoreDetailBean extends BaseBean {

    private String data;

    public StoreDetailBean.Data getData() {
        return new Gson().fromJson(data, StoreDetailBean.Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }


    public static class Data implements Serializable {
        private List<Appraise> appraiseList;
        private String address;
        private String roleId;
        private List<DesignerDetial> designList;
        private List<Icon> iconList;
        private int projectNumber;
        private int teamNumber;
        private String experienceName;
        private double lon;
        private double lat;
        private String url;
        private String userName;

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public List<Appraise> getAppraiseList() {
            return appraiseList;
        }

        public void setAppraiseList(List<Appraise> appraiseList) {
            this.appraiseList = appraiseList;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getRoleId() {
            return roleId;
        }

        public void setRoleId(String roleId) {
            this.roleId = roleId;
        }

        public List<DesignerDetial> getDesignList() {
            return designList;
        }

        public void setDesignList(List<DesignerDetial> designList) {
            this.designList = designList;
        }

        public List<Icon> getIconList() {
            return iconList;
        }

        public void setIconList(List<Icon> iconList) {
            this.iconList = iconList;
        }

        public int getProjectNumber() {
            return projectNumber;
        }

        public void setProjectNumber(int projectNumber) {
            this.projectNumber = projectNumber;
        }

        public int getTeamNumber() {
            return teamNumber;
        }

        public void setTeamNumber(int teamNumber) {
            this.teamNumber = teamNumber;
        }

        public String getExperienceName() {
            return experienceName;
        }

        public void setExperienceName(String experienceName) {
            this.experienceName = experienceName;
        }

        public double getLon() {
            return lon;
        }

        public void setLon(double lon) {
            this.lon = lon;
        }

        public double getLat() {
            return lat;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }


    public static class Appraise {
//  "msId": 5284,
//          "phone": "18202206972",
//          "createTime": "2017-12-29",
//          "place": "评价设计师",
//          "userNumber": 5,
//          "imgList": []

        private int msId;

        private String phone;
        private String createTime;

        private String place;
        private int userNumber;

        private List<Icon> imgList;

        public int getMsId() {
            return msId;
        }

        public void setMsId(int msId) {
            this.msId = msId;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getPlace() {
            return place;
        }

        public void setPlace(String place) {
            this.place = place;
        }

        public int getUserNumber() {
            return userNumber;
        }

        public void setUserNumber(int userNumber) {
            this.userNumber = userNumber;
        }

        public List<Icon> getImgList() {
            return imgList;
        }

        public void setImgList(List<Icon> imgList) {
            this.imgList = imgList;
        }
    }

    public static class DesignerDetial extends BaseBean {
        //  "phone": "13610928895",
//          "toDay": 1,
//          "userName": "jack",
//          "url": "upload/2017/11/30/1512020033207.png"
        private String roleId;

        private int toDay;

        private String userName;

        private String url;

        public String getRoleId() {
            return roleId;
        }

        public void setRoleId(String roleId) {
            this.roleId = roleId;
        }

        public int getToDay() {
            return toDay;
        }

        public void setToDay(int toDay) {
            this.toDay = toDay;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }

    public static class Icon {
        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
